﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RTS
{
	class CrossBowMan : Unit
	{
		public CrossBowMan(GameMain game) : base(game)
		{
			trainTime = 5;
			velocity = 2.5F;
			maxLife = life = 100;

			DefineTextures();
		}

		private void DefineTextures()
		{
			unitTextures = new RTSUnitTextures(new TextureSize(225, 225));

			unitTextures.Idle = "CrossBowManIDLE";
			unitTextures.Walk = "CrossBowManWALKING";
			unitTextures.Attack = "CrossBowManATTACK1";
			unitTextures.Death = "CrossBowManDEATH";
			unitTextures.SelectionArea = "CrossBowMan_selection";
			unitTextures.Seleted = "CrossBowMan_selection circle";
			unitTextures.LifeBar = "CrossBowMan_health bar life";
			unitTextures.LifeBarBackground = "CrossBowMan_health bar empty";
			unitTextures.AttackRange = "CrossBowMan_attack range";

			unitTextures.LifeBarOffsetX = 87;
			unitTextures.LifeBarWidth = 50;
		}
	}
}
